<template>
	<view class="aboutUs">
		<HeaderBar :title="title" showBack fixed backgroundColor="#F6F6F6" />
		<view class="contentBox">

			<view class="" v-html="html"></view>
		</view>
	</view>
</template>

<script>
	import {
		getArticle
	} from '../../http/api.js';
	export default {
		data() {
			return {
				html: "",
				id:"",
				title:""
			}
		},
		onLoad(options) {
			const id = options.id || '';
			const title = options.title || '';
			this.id = id
			this.title = title
		},
		mounted(){
			uni.showLoading({
				title: '加载中',
				mask:true,
			});
			let param = {
				id:this.id
			}
			getArticle(param).then((res)=>{
				uni.hideLoading()
				this.html = res.data
			}).catch((err)=>{
				uni.hideLoading()
			})
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	@import "/static/iconfont/iconfont.css";

	.aboutUs {
		font-weight: 400;
		font-size: 28upx;
		height: 100%;
		background: #F6F6F6;

		.contentBox {
			padding: 20upx 30upx;
		}
	}
</style>